// Copyright (c)  YISH. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using NSQL.Expressions;

namespace NSQL.Extensions
{
    public static class LogicalExpressionExtensions
    {
        public static IGroupExpression And(this ILogicalExpression self, ILogicalExpression other)
        {
            return new GroupExpression(self, other, GroupOperator.And);
        }
        public static IGroupExpression Or(this ILogicalExpression self, ILogicalExpression other)
        {
            return new GroupExpression(self, other, GroupOperator.Or);
        }
        public static INotExpression Not(this ILogicalExpression self)
        {
            return new NotExpression(self);
        }
    }
}